package com.ruoyi.bpm.domain.definition;

import com.ruoyi.bpm.type.handler.JsonLongSetTypeHandler;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.ruoyi.common.orm.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * BPM 用户组
 *
 * @author 芋道源码
 */
@Table(value = "bpm_user_group")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BpmUserGroup extends BaseEntity {

    /**
     * 编号，自增
     */
    @Id
    private Long id;
    /**
     * 组名
     */
    private String name;
    /**
     * 描述
     */
    private String description;
    /**
     * 状态
     *
     * 枚举 {@link com.ruoyi.common.core.enums.CommonStatusEnum}
     */
    private Integer status;
    /**
     * 成员用户编号数组
     */
    @Column(typeHandler = JsonLongSetTypeHandler.class)
    private Set<Long> userIds;

}
